﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Windows.Media;

using NUnit.Framework;

using NUnitResults;
using NUnitResultsExplorer;

namespace NUnitResultsExplorerTests.Unit
{
    public class StatusToBrushConverterTests
    {
        [Theory]
        public void TestConvert(Status status)
        {
            var culture = CultureInfo.GetCultureInfo("en-GB");
            var c = new StatusToBrushConverter();
            var actualValue = c.Convert(status, typeof(Brush), null, culture);
            Assert.IsInstanceOf<Brush>(actualValue);
            Assert.IsNotNull(actualValue);
        }

        [Test, ExpectedException(typeof(NotImplementedException))]
        public void TestConvertBack()
        {
            var culture = CultureInfo.GetCultureInfo("en-GB");
            var c = new StatusToBrushConverter();
            c.ConvertBack(null, typeof(String), null, culture);
        }
    }
}
